/* 用户相关数据处理层 */

const UserModel = require('../../models/UserModel');

const UserService = {
	login: async ({ username, password }) => {
		return UserModel.find({
			username,
			password,
		});
	},
};

module.exports = UserService;
